/**
 * @filename:Logininfor 2022-3-2
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.admin.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**   
 * @Description:TODO(登录日志实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_logininfor")
@ApiModel(value="sys_logininfor对象", description="登录日志表")
public class Logininfor extends Model<Logininfor> {

	private static final long serialVersionUID = 6192676604319593L;
	
	@TableId(value ="info_id", type = IdType.AUTO)  
	@ApiModelProperty(name = "info_id" , value = "ID")
    private Long info_id;
    
    @TableField(value = "login_name") 	
	@ApiModelProperty(name = "login_name" , value = "登录账号")
    private String login_name;
    
    @TableField(value = "ipaddr") 	
	@ApiModelProperty(name = "ipaddr" , value = "登录IP地址")
    private String ipaddr;
    
    @TableField(value = "login_location") 	
	@ApiModelProperty(name = "login_location" , value = "登录地点")
    private String login_location;
    
    @TableField(value = "browser") 	
	@ApiModelProperty(name = "browser" , value = "浏览器类型")
    private String browser;
    
    @TableField(value = "os") 	
	@ApiModelProperty(name = "os" , value = "操作系统")
    private String os;
    
    @TableField(value = "status") 	
	@ApiModelProperty(name = "status" , value = "登录状态")
    private Integer status;
    
    @TableField(value = "msg") 	
	@ApiModelProperty(name = "msg" , value = "提示消息")
    private String msg;
    
    @TableField(value = "login_time") 	
	@ApiModelProperty(name = "login_time" , value = "访问时间")
    private Date login_time;
    

	@Override
    public Serializable pkVal() {
        return this.info_id;
    }
   
}
